//
//  KongWIllnessDetailModel.m
//  LoveOfPet
//
//  Created by dllo on 15/11/23.
//  Copyright © 2015年 孔维. All rights reserved.
//

#import "KongWIllnessDetailModel.h"

@implementation KongWIllnessDetailModel
-(void)dealloc
{
    [_thumb release];
    [_title release];
    [_ID release];
    [super dealloc];
}
-(instancetype) initWithDictionary:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

+(KongWIllnessDetailModel *)illnessDetailWithDictionary:(NSDictionary *)dic
{
    KongWIllnessDetailModel *illnessDetail = [[KongWIllnessDetailModel alloc] initWithDictionary:dic];
    return [illnessDetail autorelease];
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
    }
}
@end
